<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="author" content="lcy">
    <script src="../jquery-3.1.1.js"></script>
    <title></title>
    <style>
        *{
            /*box-sizing: border-box;*/
        }
        ul,li,p,h2{
            padding: 0;
            margin: 0;
            list-style: none;
        }
        main{
            width: 180px;
            margin: 0 auto;
            border: 1px solid #ccc;
            padding: 0 5px;
            /*position: relative;*/
        }
        h2{
            text-align: center;
            background-color: #999;
            position: relative;
            left: -5px;
            top: 0px;
            width: 190px !important;
        }
        ul li{
            position: relative;
            margin-top: 5px;
            height: 150px;
            overflow: hidden;
        }
        li span.one{
            background-color: rosybrown;
            display: inline-block;
            width: 100%;
            line-height: 20px;
            color: white;
            position: absolute;
            bottom: 0px;
            text-indent: 20px;
        }
        li span.two{
            position: absolute;
            bottom: -20px;
            background-color: green;
            color: white;
            text-indent: 20px;
            display: inline-block;
            width: 100%;
            line-height: 20px;
        }
        li img:nth-child(1){
            position: absolute;
            top: 0;
            left: 0;
        }
        .show li img:nth-child(2){
            position: absolute;
            right: -185px;
        }
    </style>
</head>
<body>
    <main class="outer">
        <h2>专辑推荐</h2>
        <ul class="show">
            <li>
                <img src="../images/1_1.jpg" alt="">
                <img src="../images/1_2.jpg" alt="">
                <span class="one">COCOON/可可尼</span>
                <span class="two">COCOON/阿曼</span>                
            </li>
            <li><img src="../images/2_1.jpg" alt="">
                <img src="../images/2_2.jpg" alt="">
                <span class="one">COCOON/可可尼</span>
                <span class="two">COCOON/阿曼</span>
            </li>
            <li><img src="../images/3_1.jpg" alt="">
                <img src="../images/3_2.jpg" alt="">    
                <span class="one">COCOON/可可尼</span>
                <span class="two">COCOON/阿曼</span>
            </li>
        </ul>
    </main>
</body>
</html>
<script>
    $('.show li').hover(function(){
        $(this).find('img:first-child').stop().animate({
            left:-185,
        },1000)
        $(this).find('img:nth-child(2)').stop().animate({
           left:0, 
        },1000)
        $(this).find('.one').stop().animate({
            bottom:-20,
        },1000)
        $(this).find('.two').stop().animate({
           bottom:0, 
        },1000);
    },function(){
        $(this).find('img:first-child').stop().animate({
            left:0,
        },1000)
        $(this).find('img:nth-child(2)').stop().animate({
           left:185, 
        },1000)
        $(this).find('.one').stop().animate({
            bottom:0,
        },1000)
        $(this).find('.two').stop().animate({
           bottom:-20, 
        },1000);
    })
</script>